﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Innova.Microfinanzas.BusinessEntities;
using System.Data;
using Innova.FoundationFramework.DataTypes;

namespace MyCommerce.Presentation.Orders.IViews
{
    public interface INewOrderToSupplierView
    {
        object ObjSelectedDetail { get; }
        List<Supplier> ColSuppliers { set; }
        List<Classifier> ColMoneys { set; }
        List<Conveyor> ColConveyors { set; }
        long IdSelectedStore { get; set; }
        long IdSupplier { get; }
        long IdUser { get; }
        long IdMoney { get; }
        IList<long> ColSelectedConveyors { get; }
        DataTable DTOrderDetail { get; set; }

        long IdSelectedOrder { get; set; }

        void EnableOrderData(bool action);
        void LoadOrderSupplier(OrderSupplier objOrder);
        ProductNewOrderDetail InvokeNewDetail(long idSupplier, long idMoney);
        void CloseAndSetResult(bool result);
        void OnAddRemoveNewDetail(ProductNewOrderDetail objNewDetail, bool isNewDetail);
        void AddRemoveConveyor(long idConveyor);

        event EventHandler OnSave;
        event EventHandler OnSaveDelivery;
        event EventHandler OnCancel;
        event EventHandler OnAddDetail;
        event EventHandler OnRemoveDetail;
        event GenericEventHandler<long> OnAddRemoveConveyor;
        event EventHandler OnLoadView;
        event EventHandler OnLoadOrder;
    }
}
